﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Paper.aspx.cs" Inherits="Manage_Paper" EnableViewState="false" EnableSessionState="False" EnableEventValidation="false" %>

<!doctype html>
<html>
<head runat="server">
    <title></title>
    <style type="text/css">
        #TextArea1{
            width: 410px;
            height: 40px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <h1><%=model.PaperName %></h1>
    <div><%= Resources.labels.ExamTime%>：<%=model.PaperTime%></div>
    <% for (int i = 0; i < model.ExamQuestionTypeList.Count; i++) { %>
    <h5>
    <%= String.Format(Resources.labels.QuestionNo, (i + 1))%>
    <%=model.ExamQuestionTypeList[i].QuestionTypeTitle.Trim()%>
    <%= String.Format(Resources.labels.questionScore, model.ExamQuestionTypeList[i].Score)%>
    </h5>
    <div>
        <%
            System.Collections.Generic.List<Exam.Core.Model.ExamQuestion> objQuestions = model.ExamQuestionTypeList[i].QuestionList;
            for (int k = 0; k < objQuestions.Count; k++) { %>
            <div class="questioncontent"  style="margin-top:10px;">
            <span style="font-size:1em;color:#ff0000;">
            <%= String.Format(Resources.labels.QuestionLitNo, (k + 1))%>
            </span> 
            <%=Server.HtmlDecode(objQuestions[k].QuestionContent.Trim())%>
            </div>
            <div class="questionanswer" style="margin-top:10px;">
                <%if (model.ExamQuestionTypeList[i].QuestionTypeAttr.Trim() == "0") {%>
                    <div class="optsContent">
                    <%
                    System.Collections.Generic.List<Exam.Core.Model.ExamOpts> objOpts = objQuestions[k].ExamOptsList;
                    for (int m = 0; m < objOpts.Count; m++) { %>
                        <input id="Radio1" name="<%=objOpts[m].QuestionId.Trim() %>" type="radio" value="<%=objOpts[m].QuestionOptsValue.Trim()%>" />
                        <%=objOpts[m].QuestionOptsValue.Trim()%> <%=Server.HtmlDecode(objOpts[m].QuestionOptsText.Trim())%>
                    <%} %>
                    </div>
                    
                <%}
                  else { %>
                    <div class="answerContent"><textarea id="TextArea1"></textarea></div>
                <%} %>
            </div>
            <hr style="border:#E9E9E9 SOLID 1PX;" />
        <%} %>
    </div>
    
    
    <%} %>
    </div>
    </form>
</body>
</html>
